CC=gcc
CFLAGS=-std=c99 -D_XOPEN_SOURCE -g
INC=-I./include
LIB=-L./lib
BINPATH=../bin
RM=rm -rf
TARGETOBJ=riskMain.o
TARGET=risk_SERV
$(TARGET):$(TARGETOBJ)
	$(CC) $(CFLAGS) $(TARGETOBJ) -o $(BINPATH)/$@  $(LIB) -lriskfunc -lzlog -lpthread -lhiredis -lm
.c.o:
	$(CC) $(CFLAGS) $(INC) $(LIB) -c $<
	
clean:
	$(RM) *.o $(TARGET)
